package com.easy.service;

import com.easy.bean.Itinerary;
import com.easy.bean.Itinerary_detail;
import com.easy.util.Page;

import java.util.List;

public interface ItineraryService {
    Itinerary add(Itinerary itinerary);
    int del(Integer id);
    Itinerary edit(Itinerary itinerary);
    List<Itinerary> all(Itinerary itinerary);
    Itinerary one(Integer id);
    void page(Page page, Itinerary itinerary);
    void pageWithDetails(Page page, Itinerary itinerary);
    List<Itinerary_detail> getDetails(Integer itinerary_id);
    Itinerary generateItinerary(Integer userId, String city, Integer days, String preferences);
}
